//
//  PromptTableViewCell.m
//  TodatPlay
//
//  Created by dllo on 16/9/7.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "PromptTableViewCell.h"
#import "SDAutoLayout.h"
@implementation PromptTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createLabel];
    }
    return self;
}
- (void)createLabel {
    self.summaryLabel = [UILabel new];
    [self.contentView addSubview:_summaryLabel];
    self.summaryLabel.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 10)
    .rightSpaceToView(self.contentView, 15)
    .autoHeightRatio(0);
    
    self.summaryLabel.font = [UIFont systemFontOfSize:15];
    self.summaryLabel.textAlignment = NSTextAlignmentNatural;
    [self setupAutoHeightWithBottomView:self.summaryLabel bottomMargin:15];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
